import request from '@/utils/request'

export function getPost (data) {
  return request({
    url: '/mall4cloud_point/admin/post/page',
    method: 'get',
    params: data
  })
}

export function addPost (data) {
  return request({
    url: '/mall4cloud_point/admin/post/add',
    method: 'post',
    data
  })
}
export function changePost (data) {
  return request({
    url: '/mall4cloud_point/admin/post/update',
    method: 'post',
    data
  })
}

export function deletePost (data) {
  return request({
    url: '/mall4cloud_point/admin/post/delete',
    method: 'post',
    data
  })
}

export function passPost (data) {
  return request({
    url: '/mall4cloud_point/admin/post/pass',
    method: 'post',
    data
  })
}

export function hidePost (data) {
  return request({
    url: '/mall4cloud_point/admin/post/hide',
    method: 'post',
    data
  })
}

export function topPost (data) {
  return request({
    url: '/mall4cloud_point/admin/post/top',
    method: 'post',
    data
  })
}
